<template>
  <div @click="back">
      暂无数据,返回首页
  </div>
</template>

<script>
import { mapMutations } from 'vuex'
export default {
  methods: {
    ...mapMutations('publicShow', ['hide', 'show']),
    back () {
      this.$router.push('/index')
    }
  },
  mounted () {
    this.hide()
  },
  destroyed () {
    this.show()
  }
}
</script>

<style lang="scss" scoped>
    div {
        width: 2rem;
        text-align: center;
        padding: .03rem;
        border: .02rem solid black;
        margin: 2rem auto;
    }
</style>
